<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"> 
	
	<h:head>
		<title>Bank Customer Lookup (with execute="@form")</title>
		<link href="../08/css/styles.css" rel="stylesheet" type="text/css" />
	</h:head> 
	<h:body> 
		<h:form>
			<fieldset>
				<legend>Bank Customer Lookup (with execute="@form"")</legend>
				For this simple test, legal id's care id001, id002, id003.
				The password is "secret".<br/><br/>
				
				Customer ID: 
				<h:inputText value="#{bankingBeanAjax.customerId}" />
				
				<br/>
				
				Password:
				<h:inputSecret value="#{bankingBeanAjax.password}" />
				
				<br/>
				
				<h:commandButton action="#{bankingBeanAjax.showBalance}" value="Show Current Balance">
					<f:ajax execute="@form" render="ajaxMessage1" />
				</h:commandButton>
				
				<br/>
				
				<h2><h:outputText value="#{bankingBeanAjax.message}" id="ajaxMessage1"/></h2>
				
			</fieldset>
		</h:form>
	</h:body> 
</html>
